package com.example.demo.ui.main;

import java.util.List;

/**
 * @Desc
 * @Author zxp
 * @Date 2024/3/14
 */
public class MainPresenter implements MainContract.IMainPresenter {

    private MainContract.IMainModel mainModel;

    public MainPresenter() {
        mainModel = new MainModel();
    }

    @Override
    public void getGoodList() {
        List<String> goodList = mainModel.getGoodList();
        // 没有数据
        if (goodList.isEmpty()) {

        }
        // 有数据
        else {

        }
    }
}
